/*
 * Main.java
 *
 * Created on 6 novembre 2007, 23:56
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package jtalk;

import jtalk.controller.DefaultController;
import jtalk.model.XMPPManager;
import jtalk.view.jTalkFrame;

/**
 *
 * @author remy
 */
public class Start {
    
    /** Creates a new instance of Main */
    static public void main(String[] arg) {
    	
        XMPPManager connectionManager = new XMPPManager();
        DefaultController controller = new DefaultController();
        jTalkFrame jtalkView = new jTalkFrame(controller);
                
        controller.addModel(connectionManager);
        
        Runtime.getRuntime().addShutdownHook(new Shutdown(connectionManager));
        
        jtalkView.setVisible(true);
        
    }
            
}
